<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="message.listForm.weiShengJu"/>  <spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.jieSuan.zhangHuShenHe"/> </title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp"%>
    <style type="text/css">
        div.group-info {
            margin-top: 10px !important;
            margin-bottom: 0px !important;
        }
        input.innerInput {
            width: 98%;
        }
    </style>
</head>
<body class="skin-blue sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1><spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.jieSuan.zhangHuShenHe"/></h1>
        <ol class="breadcrumb">
          <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.jieSuan.zhangHuGuanLi"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.jieSuan.zhangHuGuanLi"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.jieSuan.zhangHuShenHe"/></a></li>
        </ol>
     </section>
    <section class="content">
        <div class=" box box-success">
            <div class="box-body">
                 <div class="input">
                 	<div class="textalign1"><spring:message code="message.jieSuan.kaiHuRen"/><spring:message code="message.yanZheng.maoHao"/></div>
                      <div class="boxinput">
                      <input type="text" class="textinput" id="acctHolder" name="acctHolder" placeholder="<spring:message code="message.jieSuan.kaiHuRen"/>" />
                   	  </div>
                	<div class="textalign"><spring:message code="message.jieSuan.yinHangZhangHao"/><spring:message code="message.yanZheng.maoHao"/></div>
                      <div class="boxinput">
                      <input type="text" class="textinput" id="bankAcctNo" name="bankAcctNo" placeholder="<spring:message code="message.jieSuan.yinHangZhangHao"/>" />
                   	  </div>
                    <div class="textalign" >
                   <button type="button" onclick="gridSerch();" class="btn btn-success btn-sm" id="selectDicCompType"><spring:message code="message.button.seachSpacing"/></button>
                    </div>
                </div>
            </div>
        </div>
        
        <table class="jqgrid" id="gridlist"></table>
        <div id="gridpage"></div>
   </section>
    
   <%@ include file="/WEB-INF/component/commonJS.jsp"%>
   <script type="text/javascript">
   //绑定回车
   $('#acctHolder,#bankAcctNo').bind('keydown', function(event) { 
       if (event.keyCode == "13") {
           $('#selectDicCompType').click();
       }
   });	
   $("#acctHolder").focus();//加载页面光标在第一个查询框内
   
   
   $(function() {
       $("#gridlist").jqGrid(
       {   url : "getAuditHospAcctInfoList.html",
           mtype : "POST",
           postData:{"settleAcctId":"${acctInfo.orgId}"},
           datatype : "json",
           autowidth : true,
          // shrinkToFit : false,
           height : 255,
           colNames : [ 
						'<spring:message code="message.jqGrid.cz"/>',
                        '<spring:message code="message.jieSuan.zhangHu"/>id',
                        '<spring:message code="message.jieSuan.jiGouBianMa"/>',
                        '<spring:message code="message.jieSuan.jiGouMingCheng"/>',
                        '<spring:message code="message.jieSuan.yinHangZhangHao"/>id',
                        '<spring:message code="message.jieSuan.zhangHu"/>id',
                        '<spring:message code="message.jieSuan.yinHangZhangHao"/>',
                        '<spring:message code="message.jieSuan.kaiHuRen"/>',
                        '<spring:message code="message.jieSuan.kaiHuHang"/>',
                        '<spring:message code="message.jieSuan.kaiHuHangHangHao"/>',
                        '<spring:message code="message.jieSuan.kaiHuHangHangMing"/>'
                        
                        ],
           colModel : [
						{name : 'order',index : 'order',width : 80,align : "center", sortable:false,
						    formatter:function(val, opts,rowdata) {
						        var str ="";
						        str =  "<a href='toAuditHospAcctInfo.html?bankAcctId=" +rowdata.bankAcctId  + "'><spring:message code="message.jqGrid.cz.audit"/></a>"
						        return str
						    }
						},
                       {name : 'orgId',index : 'orgId',hidden : true , width : 100,align : "center"},
                       {name : 'orgCode',index : 'orgCode',width : 120,align : "center"},  
                       {name : 'orgName',index : 'orgName',width : 160,align : "left"}, 
                       {name : 'bankAcctId',index : 'bankAcctId', hidden : true,width : 100,align : "center", sortable:false},
                       {name : 'settleAcctId',index : 'settleAcctId',hidden : true , width : 100,align : "center", sortable:false},
                       {name : 'bankAcctNo',index : 'bankAcctNo', width : 160,align : "center", sortable:false},   
                       {name : 'acctHolder',index : 'acctHolder',width : 80,align : "center", sortable:false}, 
                       {name : 'depositBank',index : 'depositBank', hidden:true,width : 120,align : "center", sortable:false},
                       {name : 'depositBankNo',index : 'depositBankNo',width : 120,align : "center", sortable:false},
                       {name : 'depositBankName',index : 'depositBankName',width : 200,align : "left", sortable:false}
                       
                      
           ],
           rowNum : 20,
           rowList : [10, 20, 50,100],
           rownumbers : true,
           pager : "#gridpage",
           viewrecords : true,
           gridComplete: function(){
	        	 //序号列宽度自适应（参数为jqgridID）
	               autoRNWidth("gridlist");
	           	//数据只有一条时默认选中（参数为jqgridID）
	               selectByOneData("gridlist");
			},
           caption : "<spring:message code="message.listForm.yiLiaoJiGou"/><spring:message code="message.jieSuan.zhangHuShenHe"/><spring:message code="message.listForm.lieBiao"/>",
           jsonReader : {
               repeatitems : false,
               id : "ids"
           }
       });
       $("#gridlist").jqGrid('navGrid', '#gridpage', {add : false,edit : false,del : false,search : false,refresh : false});
       $(window).trigger("resize");
   });
        
           function getFoucs(obj, rowId) {
               var text = $.trim($(obj).val());
               if (text != null && text != "") {
                   var $checkbox = $("#jqg_gridlist_" + rowId);
                   if ($checkbox.is(":not(:checked)")) {
                       $("#gridlist").setSelection(rowId);
                   }
               }
           }
           
           //查询
           function gridSerch() {
               var bankAcctNo = $.trim($("#bankAcctNo").val());
               var acctHolder = $.trim($("#acctHolder").val());
               var auditStatus = $.trim($("#auditStatus").val());
               $("#gridlist").jqGrid('setGridParam',{  
                   datatype:'json',
                   postData:{
                       "bankAcctNo":bankAcctNo,
                       "acctHolder":acctHolder,
                       "auditStatus":auditStatus
                   },
                   page:1
               }).trigger("reloadGrid"); //重新载入  
           }
           
          
               
           
    </script>
</body>
</html>